package com.nut.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nut.course.common.BaseEntity;
import lombok.Data;

import java.util.List;

//机构方  课程信息
@Data
@TableName("bjt_partner_course")
public class PartnerCourse extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    //机构id
    private Integer partnerId;

    //名称
    private String name;

    //课程类型  1体育 2艺术 3科技 4其他
    private Integer type;

    //简介
    private String profile;

    //图片地址
    private String head;

    //banner图片地址
    @TableField(exist = false)
    private List<String> banners;

    //banner图片地址
    private String banner;

    //任课老师ids
    private String teachers;

    //周期
    private String cycle;

    //课时
    private String hours;

    //课程人数
    private Integer num;

    //价格
    private Integer price;

    //课程适合年级-min
    private Integer gradeStart;

    //课程适合年级-max
    private Integer gradeEnd;

    //课程详情
    private String detail;

    //状态 0未发布  1已发布
    private Integer status;

}
